using System.Collections;
using System.Collections.Generic;
using com.yoozoo.gta.Art.RpgScene;
using UnityEditor;
using UnityEngine;


namespace com.yoozoo.gta.Art.RpgScene
{
    [CustomEditor(typeof(CustomSetMaterial))]
    public class CustomSetMaterialEditor : UnityEditor.Editor
    {
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            CustomSetMaterial customSetMaterial = target as CustomSetMaterial;

            if (GUILayout.Button("收集材质",GUILayout.Height(36)))
            {
                customSetMaterial.GetMaterials();
            }
            EditorGUILayout.HelpBox("作用：为解决IOS设备上GTA世界里豪车试驾活动中CheckPoint的光圈特效材质引用丢失问题，预先收集好特效预制体的材质后面再赋回去。",MessageType.Info);
        }
    }
}